import request from '@/utils/request.js'
const PATH = '/mobile/sport/'

// 获取运动类型列表
export const getSportTypeList = () => request.get(PATH + 'getSportType')

// 获取用户当天运动信息
export const getSportInfo = (params) =>
  request.get(PATH + 'getSport', { params })

// 刷新运动信息
export const refreshSportInfo = (data) =>
  request.post(PATH + 'refreshSport', data)

// 根据运动id获取运动详情
export const getDetail = (params) => request.get(PATH + 'detail', { params })
